package com.adu.exceltest.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

@Data
public class ExcelEntity {
    @Excel(name="姓名")
    private String name;
    @Excel(name="地址")
    private String address;
    //replace:当sex的值为1时会转换为‘男’，为2是转换为‘女’
    //suffix:sex字段值得后缀，即在转换后的‘男’或‘女’后加一个‘生’字，最后形成‘男生’或‘女生’
    @Excel(name="性别",suffix = "生",replace = { "男_0", "女_1" })
    private Integer sex;
}
